//组件通过action向mutations发送命令，让其修改全局变量
import config from '../api/config'
import * as types from './mutation-types'

export const setUi = ({ dispatch }, obj) => {
    dispatch(types.UI, obj)
}

//设置弹窗状态
export const setpopPerfect = ({ dispatch }, tag, status) => {
    dispatch(types.POP_PERFECT, tag, status);
}

export const setLoginState = ({ dispatch }, tag, status) => {
    dispatch(types.LOGINSTATE, tag, status);
}
//登录信息
export const setUserInfo=({dispatch},info)=>{
    dispatch(types.USER_INFO,info)
}

//零售表格数据
export const setMainTable = ({ dispatch }, tag, status) => {
    dispatch(types.LOGINSTATE, tag, status);
}